package cn.stylefeng.guns.modular.business.frequency.financetransport.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 订单财务信息表
 *
 * @author yujie
 * @date 2023/05/09 17:17
 */
@Data
@TableName("tt_finance_transport")
@EqualsAndHashCode(callSuper = true)
public class FinanceTransport  extends BaseEntity{

    /**
     * id
     */
    @TableId("id")
    private Long id;

    /**
     * 订单id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 运单id
     */
    @TableField("transport_id")
    private Long transportId;

    /**
     * 承运应付
     */
    @TableField("transport")
    private BigDecimal transport;

    /**
     * 承运已付
     */
    @TableField("transport_has")
    private BigDecimal transportHas;

    /**
     * 承运未付
     */
    @TableField("transport_un")
    private BigDecimal transportUn;

    @TableField("transport_settlement_user_id")
    private Long transportSettlementUserId;

    /**
     * 承运结算人
     */
    @TableField("transport_settlement_name")
    private String transportSettlementName;

    /**
     * 承运结算人电话
     */
    @TableField("transport_settlement_phone")
    private String transportSettlementPhone;

    /**
     * 承运付款方式
     */
    @TableField("transport_settlement_type")
    private Integer transportSettlementType;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;

    @TableField(exist = false)
    private String startCode;

    @TableField(exist = false)
    private String destinationCode;

    @TableField(exist = false)
    private String transportNo;
}
